Skip to content

Conversation

@cmcfarlen
Copy link
Contributor

This removes the flag to call the destructor on ClassAllocator objects. ClassAllocator now requires that objects have a noexcept destructor that it can call on all objects. This is much safer than the explicit flag and should not add any overhead for trivially destructed types. I've added unit tests for this and also ran ASAN to make sure that the tests don't report memory leaks.

The unit tests were written by Claude, other code is my own.

@cmcfarlen cmcfarlen added this to the 10.2.0 milestone Nov 19, 2025
@cmcfarlen cmcfarlen self-assigned this Nov 19, 2025
@apache apache deleted a comment from cmcfarlen Nov 19, 2025
@cmcfarlen cmcfarlen force-pushed the class-alloc-destruct branch from b67c2b7 to 5f9211c Compare November 20, 2025 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant